package org.protester.core;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * Classe que define uma localizacao
 * 
 * {@link http ://www.objectdb.com/api/java/jpa/Embeddable}
 * 
 * @author fernandojr.ifcg@live.com
 */
@Embeddable
public class Location {

	@Column(nullable = false)
	private String address;
	@Column(nullable = false)
	private String state;
	@Column(nullable = false)
	private String city;
	@Column(nullable = false)
	private String country;

	private int number;
	private String postcode;
	private String reference;

	public Location() {

	}

	public Location(String address, String state, String city, String country) {
		this.address = address;
		this.state = state;
		this.city = city;
		this.country = country;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getReference() {
		return reference;
	}

	public void setReference(String reference) {
		this.reference = reference;
	}

}
